<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\Engine\BaseModel;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Feed
 *
 * @property int $id
 * @property string|null $name
 * @property int $foods
 * @property int $points
 *
 * @package App\Models
 */
class Feed extends BaseModel
{
	protected $table = 'feeds';
	public $timestamps = false;

	protected $casts = [
		'foods' => 'int',
		'points' => 'int'
	];

	protected $fillable = [
		'name',
		'foods',
		'points'
	];

    public $rule=[
        'name'=>'required',
        'foods'=>'required',
        'points'=>'required',


    ];
    public $ruleMessage=[
        'name.required'=>"请输入名称",
        'foods.required'=>"请填写食物数量",
        'points.required'=>"请填写所需积分",
    ];
}
